import request from '@/utils/request'
// 拍卖列表
export function getMyAuction(params) {
  return request({
    url: '/ActivityApi/myAuction',
    method: 'get',
    params
  })
}

// 拍卖确认订单
export function getComfrimOrder(params) {
  return request({
    url: '/ActivityApi/comfrimOrder',
    method: 'get',
    params
  })
}

// 拍卖订单详情
export function getPayAuction(params) {
  return request({
    url: '/ActivityApi/payAuction',
    method: 'get',
    params
  })
}

// 拍卖商品详情
export function getAuctionGoodsDetail(data) {
  return request({
    url: '/ItemApi/auctionGoodsDetail',
    method: 'post',
    data
  })
}

// 拍卖商品详情diy
export function auctionGoodsDetailDiyHtml(params) {
  return request({
    url: '/ItemApi/auctionGoodsDetailDiyHtml',
    method: 'get',
    params
  })
}

// 众筹列表
export function collectLists(params) {
  return request({
    url: '/ActivityApi/lists',
    method: 'get',
    params
  })
}

// 众筹详情
export function collectDetail(params) {
  return request({
    url: '/ActivityApi/detail',
    method: 'get',
    params
  })
}

// 众筹结算页面详情
export function collectOrderBuy(params) {
  return request({
    url: '/OrderApi/collectOrderBuy',
    method: 'get',
    params
  })
}

// 众筹结算页面提交订单
export function collectOrderAdd(params) {
  return request({
    url: '/OrderApi/collectOrderAdd',
    method: 'get',
    params
  })
}

// 缴纳保证金
export function marginData(data) {
  return request({
    url: '/ItemApi/margin',
    method: 'post',
    data
  })
}

// 缴纳保证金支付
export function addDeposit(params) {
  return request({
    url: '/ItemApi/addDeposit',
    method: 'get',
    params
  })
}

// 出价大厅
export function getAuctionLobby(data) {
  return request({
    url: '/ItemApi/auctionLobby',
    method: 'post',
    data
  })
}

// 出价接口
export function bidDingData(data) {
  return request({
    url: '/ItemApi/bidDing',
    method: 'post',
    data
  })
}

// 拍卖成功支付页面
export function addAuctionOrder(params) {
  return request({
    url: '/ItemApi/addAuctionOrder',
    method: 'get',
    params
  })
}

// 拍卖轮次列表
export function getRoundList(params) {
  return request({
    url: '/ItemApi/roundList',
    method: 'get',
    params
  })
}


// 0元抽大奖详情
export function luckDrawPrizeData(params) {
  return request({
    url: '/LuckDrawApi/activityInfo',
    method: 'get',
    params
  })
}

// 领取优惠码
export function getDrawCode(data) {
  return request({
    url: '/LuckDrawApi/getDrawCode',
    method: 'post',
    data
  })
}

// 开奖提醒
export function putActivityInfo(data) {
  return request({
    url: '/LuckDrawApi/setRemind',
    method: 'post',
    data
  })
}

// 我的抽奖码
export function getMyLuckDrawCode(params) {
  return request({
    url: '/LuckDrawApi/myLuckDrawCode',
    method: 'get',
    params
  })
}

// 中奖详情页
export function getWinPrizeInfo(params) {
  return request({
    url: '/LuckDrawApi/winPrizeInfo',
    method: 'get',
    params
  })
}

// 领取奖励
export function receiveLuckDraw(data) {
  return request({
    url: '/LuckDrawApi/receiveLuckDraw',
    method: 'post',
    data
  })
}
